#include <stdio.h>
main()
{  	 	 	 	 	 
    int  n=0, t;
    for (t=0; t<28*7; t++)
    {  	 	 	 	 	 
        if (t%5 == 0 && t < 28*5) 
        {  	 	 	 	 	 
            n++;   
            continue;
        }
        if (t%6 == 0 && t < 28*6)  
        {  	 	 	 	 	 
            n++;
            continue;
        }
        if (t%7 == 0)              
        {  	 	 	 	 	 
            n++;
        }
    }
    printf("n=%d\n", n);
}  	 